package com.javarevolutions.ws.bean;

import java.rmi.RemoteException;


import com.javarevolutions.ws.service.ImplLogin;
import com.javarevolutions.ws.service.ImplLoginProxy;

public class Principal {

	public static void main(String[] args) {
		ImplLogin iface = new ImplLoginProxy("http://localhost:8080/ValidaCredenciales/services/ImplLogin");
		BeanLogin obj = new BeanLogin();
		obj.setUsuario("Srios");
		obj.setPassword("rios");
		try {
			obj = iface.validaLogin(obj);
			if(obj.getStatus()){
				System.out.println(obj.getMensaje());
			}else{
				System.out.println(obj.getMensaje());
			}
		}catch (RemoteException re) {
			re.printStackTrace();
		}
	}

}
